import { createStore, AnyAction } from 'redux';
let store = createStore(state => state);
interface MyAction extends AnyAction {
    age: number
}
class My2Action implements AnyAction {
    [extraProps: string]: any; type: any;
}
// 依赖接口不依赖具体的实现
let action: My2Action = { type: 'increment', age: 10 };
store.dispatch(action);
/**
 * 
 * dispatch 源码：默认AnyAction
export interface Dispatch<A extends Action = AnyAction> {
  <T extends A>(action: T): T
}
 */